package com.yf.exam.score;

import org.springframework.web.client.RestTemplate;

import javax.annotation.Resource;

/**
 * @author : xascgcs
 */
public class ScoreService {

    @Resource
    private RestTemplate restTemplate;

    public int getScore(String standardAnswer, String userAnswer) {
        int score
                = restTemplate.getForObject("", Integer.class, standardAnswer, userAnswer);
        return 1;
    }

}
